package com.wenjing.xiaoyun.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("chat_sessions")
public class ChatSession {
    @TableId(value = "session_id", type = IdType.AUTO)
    private Long sessionId;        // 会话ID
    
    @TableField("user_id")
    private Long userId;          // 用户ID
    
    @TableField("session_name")
    private String sessionName;    // 会话名称
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;  // 创建时间
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;  // 更新时间
    
    @TableField("last_message")
    private String lastMessage;    // 最后一条消息
} 